package com.larly.larlyclientsdk;

import com.larly.larlyclientsdk.client.LarlyClient;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "larly.api")
@Data
@ComponentScan
public class LarlyAPIClientConfig {

    private String accessKey;
    private String secretKey;


    @Bean
    public LarlyClient getLarlyAPIClient() {
        return new LarlyClient(accessKey, secretKey);
    }
}
